using System;

namespace DomainExample.DomainModel.PersonModel
{
    public sealed class PersonId : Int32Identity
    {
        private PersonId(Int32 value)
        {
            Value = value;
        }

        public static PersonId NewPersonId(Int32 value = 0)
        {
            return new PersonId(value);
        }

        public override string ToString()
        {
            return string.Format(
                "{0}: Value={1}",
                base.ToString(),
                Value
                );
        }
    }
}